<%@page import="com.nuaa.domain.transfer.TransSupEntity"%>
<%@page import="com.nuaa.domain.transfer.TransferEntity"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	String contextPath = request.getContextPath();
	TransferEntity transInfo = (TransferEntity)request.getAttribute("transInfo");
	TransSupEntity transSupInfo = (TransSupEntity)request.getAttribute("transSupInfo");
	String filePath = request.getAttribute("filePath").toString();
%>
<jsp:include page="/WEB-INF/jsp/common/fadeout.jsp"></jsp:include>
<style scoped="scoped">
        .textbox{
            height:20px;
            margin:0;
            padding:0 2px;
            box-sizing:content-box;
        }
    </style>
<style type="text/css">
	table{
		font-size:25;
		font-family:sans-serif;
	}
	table tr td{
		align:left;
	}
</style>
<div id="trans_sup" class="easyui-layout" data-options="fit:true">  
<div data-options="region:'center',split:false" style="padding:15px;">
	<table align="center">
		<tr><td colspan="6" style="text-align:center;color:blue;font-weight:bold">订单明细</td></tr>
		<tr></tr>
		<tr>
			<td>订单编号</td>
			<td>&nbsp;<%=transInfo.getOrder_no()%></td>
			<td></td>
			<td></td>
			<td>客户编号</td>
			<td>&nbsp;<%=transInfo.getCustomer_no()%></td>
		</tr>
		<tr>
			<td>订单业务类型</td>
			<td>&nbsp;<%=transInfo.getBusiness_type()%></td>
			<td></td>
			<td></td>
			<td>下单时间</td>
			<td>&nbsp;<%=transInfo.getCreate_tm()%></td>
		</tr>
		<tr>
			<td>订单邮费</td>
			<td>&nbsp;<%=transInfo.getPostage()==null?"未指定":transInfo.getPostage()%></td>
			<td></td>
			<td></td>
			<td>订单人工费</td>
			<td>&nbsp;<%=transInfo.getLaborFee()==null?"未指定":transInfo.getLaborFee()%></td>
		</tr>
		<tr>
			<td>订单状态</td>
			<td>&nbsp;
				<%
					int value = transInfo.getState();
				if(value==0)
	    			 out.print("待审核");
	    		 else if(value==1)
	    			 out.print("审核中");
	    		 else if(value==2)
	    			 out.print("收货中");
	    		 else if(value == 3)
	    			 out.print("处理中");
	    		 else if(value==4)
	    			 out.print("待付款");
	    		 else if(value==5)
	    			 out.print("发货中");
	    		 else if(value==6)
	    			 out.print("完成");
	    		 else
	    			 out.print("状态出错");
				%>
			</td>
			<td></td>	<td></td>
			<td>产品平均重量</td><td>&nbsp;<%=transInfo.getAve_weight()%> &nbsp;LB</td>
		</tr>
		<tr>
			<td>中转的总包裹数</td><td>&nbsp;<%=transInfo.getBox_total()%></td>
			<td></td><td></td>
			<td><label for="repack">是否重新包装</label></td>  
        	<td>
        		&nbsp;<%=transInfo.getIfRePack()==0?"是":"否"%>	
			 </td> 
		</tr>
		<tr>
		</tr>
		<tr></tr>
		<tr>
			<td>平均尺寸</td>
			<td  colspan="5">&nbsp;长&nbsp; <%=transInfo.getLength()%>
				&nbsp;&nbsp;&nbsp;宽
			     &nbsp;<%=transInfo.getWidth()%>&nbsp;&nbsp;&nbsp;
			       高&nbsp;<%=transInfo.getHeight()%>&nbsp;&nbsp;&nbsp;(单位：inch)</td>
		</tr>
		<tr></tr>
		<tr></tr>
		<tr>
			
		</tr>
		<tr><td colspan="6"><hr/></td></tr>
		<tr><td colspan="6" style="text-align:center;color:blue;font-weight:bold">所上传补充文档</td></tr>
		<tr>
			<td>发货货物物流单号表</td>
			<td align="center">
				<% if(transSupInfo != null && transSupInfo.getDeliver_order_tb()!=null&&!transSupInfo.getDeliver_order_tb().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+transSupInfo.getDeliver_order_tb()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td><td></td>
			<td>发货数量明细表</td>
			<td align="center">
				<% if(transSupInfo != null && transSupInfo.getDeliver_number_tb()!=null&& !transSupInfo.getDeliver_number_tb().isEmpty()){
				out.print("<a target='_blank' href='"+filePath+transSupInfo.getDeliver_number_tb()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>其它文档资料1</td>
			<td align="center">
				<% if(transSupInfo != null && transSupInfo.getOther_file()!=null&& !transSupInfo.getOther_file().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+transSupInfo.getOther_file()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td><td></td>
			<td>其它文档资料2</td>
			<td align="center">
				<% if(transSupInfo != null && transSupInfo.getOther_file2()!=null&& !transSupInfo.getOther_file2().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+transSupInfo.getOther_file2()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>其它文档资料3</td>
			<td align="center">
				<% if(transSupInfo != null && transSupInfo.getOther_file3()!=null&& !transSupInfo.getOther_file3().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+transSupInfo.getOther_file3()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td><td></td>
			<td>其它文档资料4</td>
			<td align="center">
				<% if(transSupInfo != null && transSupInfo.getOther_file4()!=null&& !transSupInfo.getOther_file4().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+transSupInfo.getOther_file4()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr><td colspan="6"><hr/></td></tr>
		<tr><td colspan="6" style="text-align:center;color:blue;font-weight:bold">管理员上传文档</td></tr>
		<tr>
			<td>收货统计表</td>
			<td align="center">
				<% if(transInfo != null && transInfo.getRec_tab_name()!=null&&!transInfo.getRec_tab_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+transInfo.getRec_tab_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td><td></td>
			<td>到货数量统计表</td>
			<td align="center">
				<% if(transInfo != null && transInfo.getArr_tab_name()!=null&&!transInfo.getArr_tab_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+transInfo.getArr_tab_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>到货结果检测表</td>
			<td align="center">
				<% if(transInfo != null && transInfo.getArr_check_result_name()!=null&&!transInfo.getArr_check_result_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+transInfo.getArr_check_result_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td><td></td>
			<td>中转发货统计表</td>
			<td align="center">
				<% if(transInfo != null && transInfo.getTran_deliver_tab_name()!=null&& !transInfo.getTran_deliver_tab_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+transInfo.getTran_deliver_tab_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			</tr>
			<tr>
			<td>中转表格模板</td>
			<td align="center">
				<% if(transInfo != null && transInfo.getTrans_model_name()!=null&& !transInfo.getTrans_model_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+transInfo.getTrans_model_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td>
			<td></td>
			<td>其它文档1</td>
			<td align="center">
				<% if(transInfo != null && transInfo.getOther_file1()!=null&& !transInfo.getOther_file1().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+transInfo.getOther_file1()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
		<td>其它文档2</td>
			<td align="center">
				<% if(transInfo != null && transInfo.getOther_file2()!=null&& !transInfo.getOther_file2().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+transInfo.getOther_file2()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		<td></td>
		<td></td>
		<td>其它文档3</td>
			<td align="center">
				<% if(transInfo != null && transInfo.getOther_file3()!=null&& !transInfo.getOther_file3().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+transInfo.getOther_file3()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		
		</tr>
		<tr>
			<td>其它文档4</td>
			<td align="center">
				<% if(transInfo != null && transInfo.getOther_file4()!=null&& !transInfo.getOther_file4().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+transInfo.getOther_file4()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
	</table>
</div>
<!-- 	<div data-options="region:'south',split:false" style="height:60px;background:#95B8E7;text-align:center;padding:10px;"> -->
<!-- 		<a id="trans_detail_btn" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-ok'">关闭</a> -->
<!-- 	</div>  -->
</div>
<script>
	$("#trans_detail_btn").click(function(){
		$("#trans_detail_dialog").dialog('close');
		$("#my_transfer_order_datagrid").datagrid('uncheckAll');
	});
</script>
